import request from '@/utils/request'
/*数据字典*/
let SysDictApi = {
  getTypeList(data, errorback) {
    return request._post('/sys/dict/type/lists', data, errorback)
  },
  addType(data, errorback) {
    return request._post('/sys/dict/type/add', data, errorback)
  },
  updateType(data, errorback) {
    return request._post('/sys/dict/type/update', data, errorback)
  },
  deleteType(data, errorback) {
    return request._post('/sys/dict/type/delete', data, errorback)
  },
  typeDetail(data, errorback) {
    return request._post('/sys/dict/type/detail', data, errorback)
  },
  getDataList(data, errorback) {
    return request._post('/sys/dict/data/lists', data, errorback)
  },
  addData(data, errorback) {
    return request._post('/sys/dict/data/add', data, errorback)
  },
  updateData(data, errorback) {
    return request._post('/sys/dict/data/update', data, errorback)
  },
  deleteData(data, errorback) {
    return request._post('/sys/dict/data/delete', data, errorback)
  },
}
export default SysDictApi